package cn.hxlc.tie.demo.modular.work.mapper;/*
 @author rui
 @date 2021/6/21 --18:49
*/

import cn.hxlc.tie.demo.modular.work.entity.WorkShop;
import cn.hxlc.tie.demo.modular.work.model.param.WorkShopParam;
import cn.hxlc.tie.demo.modular.work.model.result.WorkShopResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WorkShopMapper extends BaseMapper<WorkShop> {

   Boolean delete(Long fid);

   IPage<WorkShopResult> queryListPage(@Param("page") Page<WorkShopResult> page, @Param("paramCondition")WorkShopParam productParam);


   List<WorkShop> findByOne(int fid);


   Boolean updateBatchById(List<WorkShopParam> list);

   WorkShopResult detail(@Param("fid") Long fid);
}
